const isToken = () => {
    if (JSON.parse(localStorage.getItem('token'))) {
        return JSON.parse(localStorage.getItem('token')).token
    } else {
        return null
    }
}
export default isToken